package com.itheima.mentalarithmeticpracticesystem;

import com.itheima.test.MathTest;

/**
 * 乘法
 */
public class MultiplyTest extends MathTest {
    public MultiplyTest() {
    }

    public MultiplyTest(int x, int y) {
        super(x, y);
    }

    /**
     * 计算
     * @return
     */
    @Override
    public int calculate() {
        int s=this.getX()*this.getY();
        return s;
    }


    /**
     * 获取题目描述
     *
     * @return
     */
    public String getQuestion() {
        return this.getX()+"*"+this.getY()+"= ?";
    }
}
